import request from '@/utils/request'

// vip套餐列表
export const getvippackagelist = (data) => request({
  url: '/admin/viplist',
  method: 'post',
  data
})

// 添加vip套餐
export const addvippackageadd = (data) => request({
  url: '/admin/vippackageadd',
  method: 'post',
  data
})

// 修改vip套餐  比添加多一个id
export const updatevippackageupdate = (data) => request({
  url: '/admin/vippackageupdate',
  method: 'post',
  data
})

// 删除vip套餐
export const delvippackagedel = (data) => request({
  url: '/admin/vippackagedel',
  method: 'post',
  data
})

// 添加vip套餐
export const vipAdd = (data) => request({
  url: '/admin/vipadd',
  method: 'post',
  data
})

// 修改vip套餐
export const vipUpdate = (data) => request({
  url: '/admin/vipupdate',
  method: 'post',
  data
})

// 删除vip套餐
export const vipDelet = (data) => request({
  url: '/admin/vipupdel',
  method: 'post',
  data
})

// 套餐列表
export const vipList = (data) => request({
  url: '/admin/viplist',
  method: 'post',
  data
})

// 套餐列表
export const allVipPackage = (data) => request({
  url: '/admin/vips',
  method: 'post',
  data
})


// 套餐列表
export const vipRecharge = (data) => request({
  url: '/admin/wechatpayadmin',
  method: 'post',
  data
})

// vip购买记录
export const vipOrderListApi = (data) => request({
  url: '/admin/viporderlist',
  method: 'post',
  data
})
